import { PAGE_SIZE } from '../constants/constants';
import {request,requestJSON,requestForData} from '../utils/request';

export function getList(page){
   return request(`job`, {
    method: 'GET' ,
     body: { pageNum :page.page,pageSize:PAGE_SIZE}
  }); 
}

export function patch(id,values){
  return requestForData(`job/${id}`, {
    method: 'PUT' ,
    body: values  
  });
}

export function remove(id){
  return requestForData(`job/${id}`, {
    method: 'DELETE'    
  });
}

export function add(values){ 
  return requestForData(`job`, {
    method: 'POST' ,
    body: values  
  });
}



